package com.aiyige.utils;

import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;

import com.aiyige.MyApp;

/**
 * Created by zhuyakun on 2017/11/7.
 */

public class DialUtil {
    public static void dial(String phoneNumer) {
        if (TextUtils.isEmpty(phoneNumer)) return;
        Intent intent = new Intent(Intent.ACTION_DIAL);
        intent.setData(Uri.parse("tel:" + phoneNumer));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        MyApp.getInstance().startActivity(intent);
    }
}
